<?php

/*
 * NEW VALUES
 */
define('MODE_SLIMCHAT',          0);
define('MODE_CLIENT_PULL',       1);
define('MODE_SERVER_PUSH',       4);
define('MODE_SERVER_PUSH_PROXY', 5);

/*
 * From phpBB 2.x
 */
define('END_TRANSACTION', 2);

/*
 * Logging levels...
 *
 * LOG_EMERG,    0  // system is unusable 
 * LOG_ALERT     1  // action must be taken immediately 
 * LOG_CRIT      2  // critical conditions 
 * LOG_ERR       3  // error conditions 
 * LOG_WARNING   4  // warning conditions 
 * LOG_NOTICE    5  // normal but significant condition 
 * LOG_INFO      6  // informational 
 * LOG_DEBUG     7  // debug-level messages
 */
define('LOG_WARN',      LOG_WARNING);
define('LOG_ERROR',     LOG_ERR);

/*
 * Define array of config variables for timeout control
 */
$timeout_help   = array(
    'TIME_NOPULL'   => 'For client pull and slimchat, the amount of time since the user has polled for updates. If they have not polled in X seconds, time them out (usually the browser window has been closed without logging out).',
    'TIME_IDLE'     => 'The amount of time before a user is flagged as being idle (notice sent to room).',
    'TIME_LIMBO'    => 'The amount of time before a user is flagged as being in limbo (notice sent to room).',
    'TIME_WARN'     => 'The amount of time before a user is warned that they are going to be timed out. This should not apply to moderators and admins.',
    'TIME_TIMEOUT'  => 'The amount of time before a user is disconnected for being idle too long. This should not apply to moderators and admins.',
);

/*
 * Define array of config settings
 */
$setting_help   = array(
    'CHAT_SERVER'           => 'The hostname used for server push. This can be left blank if you do not use the binary server.',
    'CHAT_PORT'             => 'The port used for server push. This can be left blank if you do not use the binary server.',
    'CHAT_URL'              => 'The URL to access chat.',
    'DEFAULT_ROOM'          => 'The room ID which will be selected by default. You can find this by checking the Manage Rooms page.',
    'FORUM_BASE_URL'        => 'The base URL for your forums.',
    'FORUM_DB_PREFIX'       => 'The database prefix used by your forum installation.',
    'FORUM_LINK_URL'        => 'The URL for the link to your forums displayed in chat. You can point this to a specific board or post, customize it how you wish. It is purely cosmetic.',
    'FORUM_NAME'            => 'The name on the link to your forums displayed in chat.',
    'FORUM_SMILIES_PATH'    => 'If you use a custom set of smilies, specify the path to them here.',
    'FORUM_TYPE'            => 'Which Forum Access Layer (FAL) you use. Be very careful changing this.',
);

/*
 * Define array for cron settings
 */
$cron_helper    = array(
    array('name'    => '1 minute',      'interval'  => 1,   'syntax'    => '*',    'time'      => 60),
    array('name'    => '2 minutes',     'interval'  => 2,   'syntax'    => '*/2',  'time'      => 120),
    array('name'    => '5 minutes',     'interval'  => 5,   'syntax'    => '*/5',  'time'      => 300),
    array('name'    => '10 minutes',    'interval'  => 10,  'syntax'    => '*/10', 'time'      => 600),
    array('name'    => '15 minutes',    'interval'  => 15,  'syntax'    => '*/15', 'time'      => 900),
);

/*
 * Define array for debug levels
 */
$debug_levels   = array(
    'LOG_EMERG'     => 0, // system is unusable 
    'LOG_ALERT'     => 1, // action must be taken immediately 
    'LOG_CRIT'      => 2, // critical conditions 
    'LOG_ERR'       => 3, // error conditions 
    'LOG_WARNING'   => 4, // warning conditions 
    'LOG_NOTICE'    => 5, // normal but significant condition 
    'LOG_INFO'      => 6, // informational 
    'LOG_DEBUG'     => 7, // debug-level messages
);
